home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 139 / 139.xpi / chrome / imagezoom.jar / content / options.xul < prev    next >
Extensible Markup Language  |  2010-01-07  |  17KB  |  448 lines

  1. <?xml version="1.0"?>
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.  
  4.     Copyright (c) 2006-2010  Jason Adams <imagezoom@yellowgorilla.net>
  5.  
  6.     This file is part of Image Zoom.
  7.  
  8.     Image Zoom is free software; you can redistribute it and/or modify
  9.     it under the terms of the GNU General Public License as published by
  10.     the Free Software Foundation; either version 2 of the License, or
  11.     (at your option) any later version.
  12.  
  13.     Image Zoom is distributed in the hope that it will be useful,
  14.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.     GNU General Public License for more details.
  17.  
  18.     You should have received a copy of the GNU General Public License
  19.     along with Image Zoom; if not, write to the Free Software
  20.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  21.  
  22. ***** END LICENSE BLOCK ***** -->
  23.  
  24. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  25. <?xml-stylesheet href="chrome://net.yellowgorilla.imagezoom/skin/imagezoom.css" type="text/css"?>
  26. <?xml-stylesheet href="chrome://mozapps/skin/pref/pref.css" type="text/css"?>
  27.  
  28. <!DOCTYPE window SYSTEM "chrome://net.yellowgorilla.imagezoom/locale/imageZoom.dtd">
  29.  
  30. <dialog buttons="accept, cancel"
  31.         id="imagezoom-options-dialog"
  32.         ondialogaccept="return imagezoom_saveOptions()"
  33.         onload="imagezoom_initializeOptions()"
  34.         title="&iz.product.name; &iz.options.label;"
  35.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  36.  
  37.     <script type="application/x-javascript" src="chrome://net.yellowgorilla.imagezoom/content/globals.js"/>
  38.     <script type="application/x-javascript" src="chrome://net.yellowgorilla.imagezoom/content/options.js"/>
  39.    
  40.  
  41.   <stringbundleset id="stringbundleset">
  42.     <stringbundle id="bundle_ImageZoom" src="chrome://net.yellowgorilla.imagezoom/locale/imageZoom.properties"/>
  43.   </stringbundleset>
  44.  
  45.   <tabbox id="wf_tabbox">
  46.     <tabs>
  47.       <tab id="mainTab" label="&iz.options.tabs.main.label;"/>
  48.       <tab id="zoomTab" label="&iz.options.tabs.zoomcontext.label;"/>
  49.       <tab id="rotateTab" label="&iz.options.tabs.rotatecontext.label;"/>
  50.     </tabs>
  51.     <tabpanels flex="1">
  52.       <tabpanel orient="vertical" flex="1">
  53.        <vbox flex="1">
  54.        <label id="visitHome" class= "url help" value="&iz.options.help.label;" onclick="net.yellowgorilla.imagezoom.globals.openURL('http://imagezoom.yellowgorilla.net/help/?source=options&version=' + net.yellowgorilla.imagezoom.globals.getAppVersion());" />
  55.         <groupbox align="start">
  56.         <caption>
  57.             <checkbox id="imagezoomusemouseoptions" label="&iz.options.usemouse.label;" prefstring="imagezoom.usescroll" oncommand="setDisableAllChildren(document.getElementById('mouseoptions'), !this.checked);"/>
  58.         </caption>
  59.             <vbox flex="1" id="mouseoptions">
  60.               <hbox flex="1" align="center">
  61.                   <label id="imagezoommouseaccessbutton" value="&iz.options.mouseaccess.label1;" control="imagezoommouseaccess"/>
  62.                   <menulist id="imagezoommouseaccess" prefstring="imagezoom.triggerbutton">
  63.                       <menupopup>
  64.                           <menuitem label="&iz.options.lmb.label;" value="1"/>
  65.                           <menuitem label="&iz.options.mmb.label;" value="2"/>
  66.                           <menuitem label="&iz.options.rmb.label;" value="3"/>
  67.                       </menupopup>
  68.                   </menulist>
  69.                   <label id="imagezoommouseaccessbutton" value="&iz.options.mouseaccess.label2;" control="imagezoommouseaccess"/>
  70.               </hbox>
  71.               <hbox flex="1">
  72.                   <grid flex="1">
  73.                       <columns>
  74.                           <column />
  75.                           <column />
  76.                           <column />
  77.                           <column />
  78.                       </columns>
  79.                       <rows>
  80.                             <row align="center" flex="1">
  81.                               <label id="imagezoomimagefitbuttonlable" value="&iz.options.imagefit.label;" control="imagezoomimagefitbutton"/>
  82.                               <hbox align="center">                              
  83.                             <menulist id="imagezoomimagefitbutton" prefstring="imagezoom.imagefitbutton">
  84.                                 <menupopup>
  85.                                     <menuitem label="&iz.options.none.label;" value="0"/>
  86.                                     <menuitem label="&iz.options.lmb.label;" value="1"/>
  87.                                     <menuitem label="&iz.options.mmb.label;" value="2"/>
  88.                                     <menuitem label="&iz.options.rmb.label;" value="3"/>
  89.                                 </menupopup>
  90.                             </menulist>
  91.                         </hbox>
  92.                         <spacer style="min-width: 15px" flex="1" />
  93.                         <hbox align="center" flex="1">
  94.                             <checkbox id="imagezoomtogglefitreset" label="&iz.options.togglefitreset.label;" prefstring="imagezoom.toggleFitReset"/>
  95.                         </hbox>                        
  96.                     </row>
  97.                     <row align="center" flex="1">
  98.                         <label id="imagezoomimageresetbuttonlable" value="&iz.options.imagereset.label;" control="imagezoomimageresetbutton"/>
  99.                                 <menulist id="imagezoomimageresetbutton" prefstring="imagezoom.imageresetbutton">
  100.                                   <menupopup>
  101.                                       <menuitem label="&iz.options.none.label;" value="0"/>
  102.                                       <menuitem label="&iz.options.lmb.label;" value="1"/>
  103.                                       <menuitem label="&iz.options.mmb.label;" value="2"/>
  104.                                       <menuitem label="&iz.options.rmb.label;" value="3"/>
  105.                                   </menupopup>
  106.                             </menulist>
  107.                             <spacer flex="1" />
  108.                             <spacer flex="1" />
  109.                         </row>
  110.                           <row align="center" flex="1">
  111.                               <label id="imagezoomscrollvaluelabelbefore" value="&iz.options.defaultscroll.label;" control="imagezoomscrollvalue"/>
  112.                               <hbox align="center">
  113.                                   <menulist id="imagezoomscrollvalue" prefstring="imagezoom.scrollvalue">
  114.                                         <menupopup>
  115.                                           <menuitem label="100" value="100"/>
  116.                                         <menuitem label="75" value="75"/>
  117.                                         <menuitem label="50" value="50"/>
  118.                                         <menuitem label="25" value="25"/>
  119.                                         <menuitem label="10" value="10"/>
  120.                                         <menuitem label="7" value="7"/>
  121.                                         <menuitem label="5" value="5"/>
  122.                                         <menuitem label="4" value="4"/>
  123.                                         <menuitem label="3" value="3"/>
  124.                                         <menuitem label="2" value="2"/>
  125.                                         <menuitem label="1" value="1"/>
  126.                                         </menupopup>
  127.                                 </menulist>
  128.                                 <label id="imagezoomscrollvaluelabelafter" value="%" />
  129.                         </hbox>
  130.                         <spacer style="min-width: 15px" flex="1" />
  131.                         <hbox align="center" flex="1">
  132.                             <checkbox id="imagezoomreversescroll" label="&iz.options.reversescroll.label;" prefstring="imagezoom.reversescrollzoom"/>
  133.                         </hbox>
  134.                           </row>
  135.                           <row align="center" flex="1">
  136.                               <label id="imagezoomscrollmodelabelbefore" value="&iz.options.scrollmode.label;" control="imagezoomscrollmode"/>
  137.                         <menulist id="imagezoomscrollmode" prefstring="imagezoom.scrollmode">
  138.                             <menupopup>
  139.                                       <menuitem label="&iz.options.scrollrelative.label;" value="0"/>
  140.                                       <menuitem label="&iz.options.scrollabsolute.label;" value="1"/>
  141.                             </menupopup>
  142.                         </menulist>
  143.                         <spacer flex="1" />
  144.                         <spacer flex="1" />
  145.                           </row>                          
  146.                       </rows>
  147.                   </grid>
  148.               </hbox>
  149.              </vbox>
  150.       </groupbox>
  151.  
  152.         <groupbox align="start">
  153.         <caption label="&iz.options.singlezoom.label;"/>
  154.         <grid flex="1">
  155.           <columns>
  156.               <column/>
  157.               <column/>
  158.               <column/>
  159.           </columns>
  160.           <rows>
  161.               <row align="center">
  162.                   <label style="width: 130px" value="&iz.options.defaultzoom.label;" control="imagezoomzoomvalue"/>
  163.             <menulist id="imagezoomzoomvalue" prefstring="imagezoom.zoomvalue">
  164.                         <menupopup>
  165.                         <menuitem label="400" value="400"/>
  166.                         <menuitem label="300" value="300"/>
  167.                         <menuitem label="200" value="200"/>
  168.                         <menuitem label="175" value="175"/>
  169.                         <menuitem label="150" value="150"/>
  170.                         <menuitem label="125" value="125"/>
  171.                         <menuitem label="110" value="110"/>
  172.                         </menupopup>
  173.                 </menulist>
  174.                 <label value="%"/>
  175.               </row>
  176.           </rows>
  177.         </grid>
  178.         <checkbox id="imagezoomautocenter" label="&iz.options.autocenter.label;" prefstring="imagezoom.autocenter"/>
  179.       </groupbox>
  180.     </vbox>
  181.    </tabpanel>
  182.    <tabpanel orient="vertical">
  183.        <hbox>
  184.         <spacer flex="1" />
  185.           <label id="visitHome" class= "url help" value="&iz.options.help.label;" onclick="net.yellowgorilla.imagezoom.globals.openURL('http://imagezoom.yellowgorilla.net/help/?source=options&version=&iz.product.version;');" />
  186.        </hbox>
  187.        <groupbox id="container" orient="horizontal" flex="1">
  188.         <caption label="&iz.options.contextdisplay.label;"/>
  189.         <label id="imagezoomcontextdescription" label="&iz.options.contextdescription.label;" />
  190.         <vbox flex="1" />
  191.     <vbox>
  192.             <hbox flex="1" />
  193.         <box id="mainmenu" class="menu-right">
  194.             <menuitem label="..."
  195.                   class="dummy"/>
  196.                   <menuseparator />
  197.                   <menuitem id="context-viewimage"
  198.                         class="dummy"
  199.                             label="&iz.options.menudummy.view.label;"
  200.                             accesskey="&iz.options.menudummy.view.accesskey;"/>
  201.                   <menuitem id="context-copyimage-contents"
  202.                         class="dummy"
  203.                             label="&iz.options.menudummy.contents.label;"
  204.                             accesskey="&iz.options.menudummy.contents.accesskey;"/>
  205.                   <menuitem id="context-copyimage"
  206.                           class="dummy"
  207.                             label="&iz.options.menudummy.image.label;"
  208.                             accesskey="&iz.options.menudummy.image.accesskey;"/>
  209.             <checkbox id="context-zoom-zin"
  210.                 label="&iz.menu.context.increase.label;"
  211.                 oncommand="setOption(this);"
  212.                 accesskey="&iz.menu.context.increase.label;"
  213.             />
  214.             <checkbox id="context-zoom-zreset"
  215.                 label="&iz.menu.context.reset.label;"
  216.                 oncommand="setOption(this);"
  217.                 accesskey="&iz.menu.context.reset.label;"
  218.             />
  219.             <checkbox id="context-zoom-zout"
  220.                 label="&iz.menu.context.decrease.label;"
  221.                 oncommand="setOption(this);"
  222.                 accesskey="&iz.menu.context.decrease.label;"
  223.             />
  224.             <checkbox id="context-zoom-zcustom"
  225.                 label="&iz.menu.context.customzoom.label;"
  226.                 oncommand="setOption(this);"
  227.             />
  228.             <checkbox id="context-zoom-dcustom"
  229.                 label="&iz.menu.context.customdim.label;"
  230.                 oncommand="setOption(this);"
  231.             />
  232.             <checkbox id="context-zoom-fit"
  233.                 label="&iz.menu.context.imagefit.label;"
  234.                 oncommand="setOption(this);"
  235.             />
  236.             <hbox>
  237.             <vbox flex="1">
  238.             <checkbox id="context-zoomsub"
  239.                 label="&iz.menu.context.zoomimage.label;"
  240.                 accesskey="&iz.menu.context.zoomimage.label;"
  241.                 oncommand="toggleSubMenu();"
  242.             /></vbox>
  243.             <vbox><image class="right-arrow" src="chrome://global/skin/menu/menu-arrow.gif" /></vbox>
  244.             </hbox>
  245.                <menuseparator />
  246.                    <menuitem id="context-saveimage"
  247.                          class="dummy"
  248.                       label="&iz.options.menudummy.save.label;"
  249.                           accesskey="&iz.options.menudummy.save.accesskey;" />
  250.                <menuitem label="..."
  251.                      class="dummy"/>
  252.         </box>
  253.         <hbox flex="1" />
  254.     </vbox>
  255.     <vbox>
  256.         <box id="submenu">
  257.             <checkbox id="zoomsub-zin"
  258.                 label="&iz.menu.context.increase.label;"
  259.                 oncommand="setOption(this);"
  260.                 accesskey="&iz.menu.context.increase.label;"
  261.             />
  262.             <checkbox id="zoomsub-zreset"
  263.                 label="&iz.menu.context.reset.label;"
  264.                 oncommand="setOption(this);"
  265.                 accesskey="&iz.menu.context.reset.label;"
  266.             />
  267.             <checkbox id="zoomsub-zout"
  268.                 label="&iz.menu.context.decrease.label;"
  269.                 oncommand="setOption(this);"
  270.                 accesskey="&iz.menu.context.decrease.label;"
  271.             />
  272.             <menuseparator />
  273.             <checkbox id="zoomsub-zcustom"
  274.                 label="&iz.menu.context.customzoom.label;"
  275.                 oncommand="setOption(this);"
  276.             />
  277.             <checkbox id="zoomsub-dcustom"
  278.                 label="&iz.menu.context.customdim.label;"
  279.                 oncommand="setOption(this);"
  280.             />
  281.             <menuseparator />
  282.             <checkbox id="zoomsub-fit"
  283.                 label="&iz.menu.context.imagefit.label;"
  284.                 oncommand="setOption(this);"
  285.             />
  286.             <menuseparator />
  287.             <menuitem id="zoomsub-z400"
  288.                 class="dummy"
  289.                 label="400%"
  290.                 onclick="togglePercentages();"
  291.             />
  292.             <menuitem id="zoomsub-z200"
  293.                 label="200%"
  294.                 class="dummy"
  295.                 onclick="togglePercentages();"
  296.             />
  297.             <menuitem id="zoomsub-z150"
  298.                 label="150%"
  299.                 class="dummy"
  300.                 onclick="togglePercentages();"
  301.             />
  302.             <menuitem id="zoomsub-z125"
  303.                 label="125%"
  304.                 class="dummy"
  305.                 onclick="togglePercentages();"
  306.             />
  307.             <menuseparator />
  308.             <checkbox id="zoomsub-z100"
  309.                 label="100%"
  310.                 oncommand="setOption(this);"
  311.             />
  312.             <menuseparator />
  313.             <menuitem id="zoomsub-z75"
  314.                 label="75%"
  315.                 class="dummy"
  316.                 onclick="togglePercentages();"
  317.             />
  318.             <menuitem id="zoomsub-z50"
  319.                 label="50%"
  320.                 class="dummy"
  321.                 onclick="togglePercentages();"
  322.             />
  323.             <menuitem id="zoomsub-z25"
  324.                 label="25%"
  325.                 class="dummy"
  326.                 onclick="togglePercentages();"
  327.             />
  328.             <menuitem id="zoomsub-z10"
  329.                 label="10%"
  330.                 class="dummy"
  331.                 onclick="togglePercentages();"
  332.             />
  333.         </box>
  334.     </vbox>
  335.     <vbox flex="1" />
  336. </groupbox>
  337.    </tabpanel>
  338.    <tabpanel orient="vertical">
  339.        <hbox>
  340.         <spacer flex="1" />
  341.           <label id="visitHome" class= "url help" value="&iz.options.help.label;" onclick="net.yellowgorilla.imagezoom.globals.openURL('http://imagezoom.yellowgorilla.net/help/?source=options&version=&iz.product.version;');" />
  342.        </hbox>
  343.        <groupbox id="container" orient="horizontal" flex="1">
  344.         <caption label="&iz.options.contextdisplay.label;"/>
  345.         <label id="imagezoomcontextdescription" label="&iz.options.contextdescription.label;" />
  346.         <vbox flex="1" />
  347.     <vbox>
  348.             <hbox flex="1" />
  349.         <box id="mainmenu">
  350.             <menuitem label="..."
  351.                   class="dummy"/>
  352.                   <menuseparator />
  353.                   <menuitem id="context-viewimage"
  354.                         class="dummy"
  355.                             label="&iz.options.menudummy.view.label;"
  356.                             accesskey="&iz.options.menudummy.view.accesskey;"/>
  357.                   <menuitem id="context-copyimage-contents"
  358.                         class="dummy"
  359.                             label="&iz.options.menudummy.contents.label;"
  360.                             accesskey="&iz.options.menudummy.contents.accesskey;"/>
  361.                   <menuitem id="context-copyimage"
  362.                           class="dummy"
  363.                             label="&iz.options.menudummy.image.label;"
  364.                             accesskey="&iz.options.menudummy.image.accesskey;"/>
  365.             <checkbox id="context-zoom-rotate-right"
  366.                 label="&iz.menu.context.imagerotateright.label;"
  367.                 oncommand="setOption(this);"
  368.                 prefstring="imagezoom.mmRotateRight"
  369.                 hidden="true"
  370.             />    
  371.             <checkbox id="context-zoom-rotate-left"
  372.                 label="&iz.menu.context.imagerotateleft.label;"
  373.                 oncommand="setOption(this);"
  374.                 prefstring="imagezoom.mmRotateLeft"
  375.                 hidden="true"
  376.             />
  377.             <checkbox id="context-zoom-rotate-180"
  378.                 label="&iz.menu.context.imagerotate180.label;"
  379.                 oncommand="setOption(this);"
  380.                 prefstring="imagezoom.mmRotate180"
  381.                 hidden="true"
  382.             />
  383.             <checkbox id="context-zoom-rotate-reset"
  384.                 label="&iz.menu.context.imagerotatereset.label;"
  385.                 oncommand="setOption(this);"
  386.                 prefstring="imagezoom.mmRotateReset"
  387.                 hidden="true"
  388.             />                
  389.             <hbox>
  390.             <vbox flex="1">
  391.             <checkbox id="context-rotatesub"
  392.                 label="&iz.menu.context.rotateimage.label;"
  393.                 accesskey="&iz.menu.context.rotateimage.label;"
  394.                 oncommand="toggleRotateMenu();"
  395.             /></vbox>
  396.             <vbox><image class="right-arrow" src="chrome://global/skin/menu/menu-arrow.gif" /></vbox>
  397.             </hbox>
  398.                <menuseparator />
  399.                    <menuitem id="context-saveimage"
  400.                          class="dummy"
  401.                       label="&iz.options.menudummy.save.label;"
  402.                           accesskey="&iz.options.menudummy.save.accesskey;" />
  403.                <menuitem label="..."
  404.                      class="dummy"/>
  405.         </box>
  406.         <hbox flex="1" />
  407.     </vbox>
  408.     <vbox>
  409.         <hbox flex="2" />
  410.         <box id="subrotatemenu">
  411.             <checkbox id="zoomsub-rotate-right"
  412.                     label="&iz.menu.context.imagerotateright.label;"
  413.                 accesskey="&iz.menu.context.rotate.right.accesskey;"
  414.                 oncommand="setOption(this);"
  415.                 prefstring="imagezoom.smRotateRight"
  416.                 hidden="true"
  417.             />
  418.             <checkbox id="zoomsub-rotate-left"
  419.                     label="&iz.menu.context.imagerotateleft.label;"
  420.                 accesskey="&iz.menu.context.rotate.left.accesskey;"
  421.                 oncommand="setOption(this);"
  422.                 prefstring="imagezoom.smRotateLeft"
  423.                 hidden="true"
  424.             />            
  425.             <checkbox id="zoomsub-rotate-180"
  426.                     label="&iz.menu.context.imagerotate180.label;"
  427.                 accesskey="&iz.menu.context.rotate.180.accesskey;"
  428.                 oncommand="setOption(this);"
  429.                 prefstring="imagezoom.smRotate180"
  430.                 hidden="true"
  431.             />                    
  432.             <checkbox id="zoomsub-rotate-reset"
  433.                     label="&iz.menu.context.imagerotatereset.label;"
  434.                 accesskey="&iz.menu.context.rotate.reset.accesskey;"
  435.                 oncommand="setOption(this);"
  436.                 prefstring="imagezoom.smRotateReset"
  437.                 hidden="true"
  438.             />                                            
  439.         </box>
  440.         <hbox flex="1" />
  441.     </vbox>
  442.     <vbox flex="1" />
  443. </groupbox>
  444.    </tabpanel>
  445.   </tabpanels>
  446.  </tabbox>
  447. </dialog>
  448.